package com.example.ordermealservice;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication
@ComponentScan(basePackages = "com.example")
//这里的@MapperScan放到了单独的OrderMealConfig配置文件中，配置文件加上了@Configuration注解，这里就不用加了
@Slf4j
public class OrderMealApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderMealApplication.class,args);
        log.info("项目启动成功");
    }
}
